package zhcms.cms;


import java.util.ArrayList;
import java.util.HashMap;

import zhcms.db.DbConn;

public class GyTablseToList {
	
	public GyTablseToList()
	{
		
	}
	
	public ArrayList<HashMap<String, String>> getAllList(String Tables,String iorder,String limitStr)
	{
		String sql="select * from `"+Tables+"` order by id "+iorder+" limit 0, "+limitStr;
		//System.out.println("sql:::::=========="+sql);
		return DbConn.executeQuery(sql);
	}
	
	public ArrayList<HashMap<String, String>> getAllList(String sql)
	{
		return DbConn.executeQuery(sql);
	}
}
